package com.tms.domain.example;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RepairRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RepairRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andToolCodeIsNull() {
            addCriterion("tool_code is null");
            return (Criteria) this;
        }

        public Criteria andToolCodeIsNotNull() {
            addCriterion("tool_code is not null");
            return (Criteria) this;
        }

        public Criteria andToolCodeEqualTo(String value) {
            addCriterion("tool_code =", value, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeNotEqualTo(String value) {
            addCriterion("tool_code <>", value, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeGreaterThan(String value) {
            addCriterion("tool_code >", value, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeGreaterThanOrEqualTo(String value) {
            addCriterion("tool_code >=", value, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeLessThan(String value) {
            addCriterion("tool_code <", value, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeLessThanOrEqualTo(String value) {
            addCriterion("tool_code <=", value, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeLike(String value) {
            addCriterion("tool_code like", value, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeNotLike(String value) {
            addCriterion("tool_code not like", value, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeIn(List<String> values) {
            addCriterion("tool_code in", values, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeNotIn(List<String> values) {
            addCriterion("tool_code not in", values, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeBetween(String value1, String value2) {
            addCriterion("tool_code between", value1, value2, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeNotBetween(String value1, String value2) {
            addCriterion("tool_code not between", value1, value2, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdIsNull() {
            addCriterion("tool_seq_id is null");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdIsNotNull() {
            addCriterion("tool_seq_id is not null");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdEqualTo(Integer value) {
            addCriterion("tool_seq_id =", value, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdNotEqualTo(Integer value) {
            addCriterion("tool_seq_id <>", value, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdGreaterThan(Integer value) {
            addCriterion("tool_seq_id >", value, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("tool_seq_id >=", value, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdLessThan(Integer value) {
            addCriterion("tool_seq_id <", value, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdLessThanOrEqualTo(Integer value) {
            addCriterion("tool_seq_id <=", value, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdIn(List<Integer> values) {
            addCriterion("tool_seq_id in", values, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdNotIn(List<Integer> values) {
            addCriterion("tool_seq_id not in", values, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdBetween(Integer value1, Integer value2) {
            addCriterion("tool_seq_id between", value1, value2, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdNotBetween(Integer value1, Integer value2) {
            addCriterion("tool_seq_id not between", value1, value2, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andSubmitPersonIdIsNull() {
            addCriterion("submit_person_id is null");
            return (Criteria) this;
        }

        public Criteria andSubmitPersonIdIsNotNull() {
            addCriterion("submit_person_id is not null");
            return (Criteria) this;
        }

        public Criteria andSubmitPersonIdEqualTo(Integer value) {
            addCriterion("submit_person_id =", value, "submitPersonId");
            return (Criteria) this;
        }

        public Criteria andSubmitPersonIdNotEqualTo(Integer value) {
            addCriterion("submit_person_id <>", value, "submitPersonId");
            return (Criteria) this;
        }

        public Criteria andSubmitPersonIdGreaterThan(Integer value) {
            addCriterion("submit_person_id >", value, "submitPersonId");
            return (Criteria) this;
        }

        public Criteria andSubmitPersonIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("submit_person_id >=", value, "submitPersonId");
            return (Criteria) this;
        }

        public Criteria andSubmitPersonIdLessThan(Integer value) {
            addCriterion("submit_person_id <", value, "submitPersonId");
            return (Criteria) this;
        }

        public Criteria andSubmitPersonIdLessThanOrEqualTo(Integer value) {
            addCriterion("submit_person_id <=", value, "submitPersonId");
            return (Criteria) this;
        }

        public Criteria andSubmitPersonIdIn(List<Integer> values) {
            addCriterion("submit_person_id in", values, "submitPersonId");
            return (Criteria) this;
        }

        public Criteria andSubmitPersonIdNotIn(List<Integer> values) {
            addCriterion("submit_person_id not in", values, "submitPersonId");
            return (Criteria) this;
        }

        public Criteria andSubmitPersonIdBetween(Integer value1, Integer value2) {
            addCriterion("submit_person_id between", value1, value2, "submitPersonId");
            return (Criteria) this;
        }

        public Criteria andSubmitPersonIdNotBetween(Integer value1, Integer value2) {
            addCriterion("submit_person_id not between", value1, value2, "submitPersonId");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeIsNull() {
            addCriterion("submit_time is null");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeIsNotNull() {
            addCriterion("submit_time is not null");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeEqualTo(Date value) {
            addCriterion("submit_time =", value, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeNotEqualTo(Date value) {
            addCriterion("submit_time <>", value, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeGreaterThan(Date value) {
            addCriterion("submit_time >", value, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("submit_time >=", value, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeLessThan(Date value) {
            addCriterion("submit_time <", value, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeLessThanOrEqualTo(Date value) {
            addCriterion("submit_time <=", value, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeIn(List<Date> values) {
            addCriterion("submit_time in", values, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeNotIn(List<Date> values) {
            addCriterion("submit_time not in", values, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeBetween(Date value1, Date value2) {
            addCriterion("submit_time between", value1, value2, "submitTime");
            return (Criteria) this;
        }

        public Criteria andSubmitTimeNotBetween(Date value1, Date value2) {
            addCriterion("submit_time not between", value1, value2, "submitTime");
            return (Criteria) this;
        }

        public Criteria andCheckerIdIsNull() {
            addCriterion("checker_id is null");
            return (Criteria) this;
        }

        public Criteria andCheckerIdIsNotNull() {
            addCriterion("checker_id is not null");
            return (Criteria) this;
        }

        public Criteria andCheckerIdEqualTo(Integer value) {
            addCriterion("checker_id =", value, "checkerId");
            return (Criteria) this;
        }

        public Criteria andCheckerIdNotEqualTo(Integer value) {
            addCriterion("checker_id <>", value, "checkerId");
            return (Criteria) this;
        }

        public Criteria andCheckerIdGreaterThan(Integer value) {
            addCriterion("checker_id >", value, "checkerId");
            return (Criteria) this;
        }

        public Criteria andCheckerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("checker_id >=", value, "checkerId");
            return (Criteria) this;
        }

        public Criteria andCheckerIdLessThan(Integer value) {
            addCriterion("checker_id <", value, "checkerId");
            return (Criteria) this;
        }

        public Criteria andCheckerIdLessThanOrEqualTo(Integer value) {
            addCriterion("checker_id <=", value, "checkerId");
            return (Criteria) this;
        }

        public Criteria andCheckerIdIn(List<Integer> values) {
            addCriterion("checker_id in", values, "checkerId");
            return (Criteria) this;
        }

        public Criteria andCheckerIdNotIn(List<Integer> values) {
            addCriterion("checker_id not in", values, "checkerId");
            return (Criteria) this;
        }

        public Criteria andCheckerIdBetween(Integer value1, Integer value2) {
            addCriterion("checker_id between", value1, value2, "checkerId");
            return (Criteria) this;
        }

        public Criteria andCheckerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("checker_id not between", value1, value2, "checkerId");
            return (Criteria) this;
        }

        public Criteria andCheckTimeIsNull() {
            addCriterion("check_time is null");
            return (Criteria) this;
        }

        public Criteria andCheckTimeIsNotNull() {
            addCriterion("check_time is not null");
            return (Criteria) this;
        }

        public Criteria andCheckTimeEqualTo(Date value) {
            addCriterion("check_time =", value, "checkTime");
            return (Criteria) this;
        }

        public Criteria andCheckTimeNotEqualTo(Date value) {
            addCriterion("check_time <>", value, "checkTime");
            return (Criteria) this;
        }

        public Criteria andCheckTimeGreaterThan(Date value) {
            addCriterion("check_time >", value, "checkTime");
            return (Criteria) this;
        }

        public Criteria andCheckTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("check_time >=", value, "checkTime");
            return (Criteria) this;
        }

        public Criteria andCheckTimeLessThan(Date value) {
            addCriterion("check_time <", value, "checkTime");
            return (Criteria) this;
        }

        public Criteria andCheckTimeLessThanOrEqualTo(Date value) {
            addCriterion("check_time <=", value, "checkTime");
            return (Criteria) this;
        }

        public Criteria andCheckTimeIn(List<Date> values) {
            addCriterion("check_time in", values, "checkTime");
            return (Criteria) this;
        }

        public Criteria andCheckTimeNotIn(List<Date> values) {
            addCriterion("check_time not in", values, "checkTime");
            return (Criteria) this;
        }

        public Criteria andCheckTimeBetween(Date value1, Date value2) {
            addCriterion("check_time between", value1, value2, "checkTime");
            return (Criteria) this;
        }

        public Criteria andCheckTimeNotBetween(Date value1, Date value2) {
            addCriterion("check_time not between", value1, value2, "checkTime");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("description is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("description is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("description =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("description <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("description >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("description >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("description <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("description <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("description like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("description not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("description in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("description not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("description between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("description not between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andImageIsNull() {
            addCriterion("image is null");
            return (Criteria) this;
        }

        public Criteria andImageIsNotNull() {
            addCriterion("image is not null");
            return (Criteria) this;
        }

        public Criteria andImageEqualTo(String value) {
            addCriterion("image =", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotEqualTo(String value) {
            addCriterion("image <>", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageGreaterThan(String value) {
            addCriterion("image >", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageGreaterThanOrEqualTo(String value) {
            addCriterion("image >=", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageLessThan(String value) {
            addCriterion("image <", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageLessThanOrEqualTo(String value) {
            addCriterion("image <=", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageLike(String value) {
            addCriterion("image like", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotLike(String value) {
            addCriterion("image not like", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageIn(List<String> values) {
            addCriterion("image in", values, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotIn(List<String> values) {
            addCriterion("image not in", values, "image");
            return (Criteria) this;
        }

        public Criteria andImageBetween(String value1, String value2) {
            addCriterion("image between", value1, value2, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotBetween(String value1, String value2) {
            addCriterion("image not between", value1, value2, "image");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andDeletionIsNull() {
            addCriterion("deletion is null");
            return (Criteria) this;
        }

        public Criteria andDeletionIsNotNull() {
            addCriterion("deletion is not null");
            return (Criteria) this;
        }

        public Criteria andDeletionEqualTo(Boolean value) {
            addCriterion("deletion =", value, "deletion");
            return (Criteria) this;
        }

        public Criteria andDeletionNotEqualTo(Boolean value) {
            addCriterion("deletion <>", value, "deletion");
            return (Criteria) this;
        }

        public Criteria andDeletionGreaterThan(Boolean value) {
            addCriterion("deletion >", value, "deletion");
            return (Criteria) this;
        }

        public Criteria andDeletionGreaterThanOrEqualTo(Boolean value) {
            addCriterion("deletion >=", value, "deletion");
            return (Criteria) this;
        }

        public Criteria andDeletionLessThan(Boolean value) {
            addCriterion("deletion <", value, "deletion");
            return (Criteria) this;
        }

        public Criteria andDeletionLessThanOrEqualTo(Boolean value) {
            addCriterion("deletion <=", value, "deletion");
            return (Criteria) this;
        }

        public Criteria andDeletionIn(List<Boolean> values) {
            addCriterion("deletion in", values, "deletion");
            return (Criteria) this;
        }

        public Criteria andDeletionNotIn(List<Boolean> values) {
            addCriterion("deletion not in", values, "deletion");
            return (Criteria) this;
        }

        public Criteria andDeletionBetween(Boolean value1, Boolean value2) {
            addCriterion("deletion between", value1, value2, "deletion");
            return (Criteria) this;
        }

        public Criteria andDeletionNotBetween(Boolean value1, Boolean value2) {
            addCriterion("deletion not between", value1, value2, "deletion");
            return (Criteria) this;
        }

    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}